home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / os2 / os2pl122.zip / OS2PL.PKG < prev   
Text File  |  1996-08-04  |  21KB  |  657 lines

  1. **********************************************************************
  2. *  See the Software Installer Reference for information on creating a
  3. *  package file.
  4. **********************************************************************
  5.  
  6.  
  7. *---------------------------------------------------------------------
  8. *  Service level
  9. *---------------------------------------------------------------------
  10. SERVICELEVEL
  11.    LEVEL = '000000'
  12.  
  13.  
  14. **********************************************************************
  15.  
  16.  
  17. *---------------------------------------------------------------------
  18. *  Include 1 DISK entry for each diskette needed.
  19. *
  20. *  The following changes are required:
  21. *  - Change "<Product Name>" in the each NAME keyword to your product
  22. *    name.
  23. *  - Set each VOLUME keyword to a unique value.
  24. *---------------------------------------------------------------------
  25. DISK
  26.    NAME   = 'OS/2-Planets',
  27.    VOLUME = 'OS2PL001'
  28.  
  29.  
  30. **********************************************************************
  31.  
  32.  
  33. *---------------------------------------------------------------------
  34. *  Default directories
  35. *---------------------------------------------------------------------
  36.  
  37. PATH
  38.    FILE      = 'C:/OS2PL',
  39.    FILELABEL = 'Installation directory'
  40.  
  41.  
  42. **********************************************************************
  43.  
  44.  
  45. *---------------------------------------------------------------------
  46. *  Exit to define your product folder's object ID.
  47. *
  48. *  The following changes are required:
  49. *  - Set variable FOLDERID to your folder's object ID; be sure to make
  50. *    the value sufficiently unique; do not use "PRODFLDR".
  51. *---------------------------------------------------------------------
  52.  
  53. FILE
  54.    EXITWHEN = 'ALWAYS',
  55.    EXIT     = 'SETVAR FOLDERID=OS2PL'
  56.  
  57. **********************************************************************
  58.  
  59.  
  60. PACKFILE
  61.    VOLUME        = 'OS2PL001',
  62.    ID            = 'OPL',
  63.    SOURCE        = 'DRIVE: BUNDLE'
  64.  
  65. *---------------------------------------------------------------------
  66. *  This component creates a folder on the desktop.  You must create
  67. *  the folder in a hidden component to ensure that deleting your
  68. *  product does not delete the folder before the objects within the
  69. *  folder are deleted.
  70. *---------------------------------------------------------------------
  71. COMPONENT
  72.    NAME    = 'INSFIRST',
  73.    ID      = 'INSFIRST',
  74.    DISPLAY = 'NO',
  75.    SIZE    = '850000'
  76.  
  77. *---------------------------------------------------------------------
  78. *  Include a FILE entry to install the catalog file.
  79. *
  80. *  The following changes are required:
  81. *  - Change the SOURCE and PWS keywords to the name of your catalog
  82. *    file.
  83. *---------------------------------------------------------------------
  84. FILE
  85.    VOLUME        = 'OS2PL001',
  86.    WHEN          = 'OUTOFDATE',
  87.    REPLACEINUSE  = 'I U D R',
  88.    UNPACK        = 'NO',
  89.    PWS           = 'OS2PL.ICF',
  90.    SOURCE        = 'OS2PL.ICF',
  91.    DATE          = '010202',
  92.    TIME          = '0000',
  93.    SIZE          = '3000'
  94.  
  95. *---------------------------------------------------------------------
  96. *  Set variable CATALOG to be the name of the catalog file;
  97. *  the variable is used in EPFISINC.PKG.
  98. *
  99. *  The following changes are required:
  100. *  - Change "CATALOG.ICF" in the EXIT keyword to the name of your
  101. *    catalog file.
  102. *---------------------------------------------------------------------
  103. FILE
  104.    EXITWHEN      = 'INSTALL || UPDATE || RESTORE',
  105.    EXITIGNOREERR = 'NO',
  106.    EXIT          = 'SETVAR CATALOG=OS2PL.ICF'
  107.  
  108. *---------------------------------------------------------------------
  109. *  Include a FILE entry to install the description file.
  110. *
  111. *  The following changes are required:
  112. *  - Change the SOURCE and PWS keywords to the name of your
  113. *    description file.
  114. *---------------------------------------------------------------------
  115. FILE
  116.    VOLUME        = 'PROD001',
  117.    WHEN          = 'OUTOFDATE',
  118.    REPLACEINUSE  = 'I U D R',
  119.    UNPACK        = 'NO',
  120.    PWS           = 'OS2PL.DSC',
  121.    SOURCE        = 'OS2PL.DSC',
  122.    DATE          = '010202',
  123.    TIME          = '0000',
  124.    SIZE          = '500'
  125.  
  126. *---------------------------------------------------------------------
  127. *  Create your product's folder on the desktop.
  128. *
  129. *  The following changes are required:
  130. *  - Change "<Product Name>" in the EXIT keyword to your product name.
  131. *---------------------------------------------------------------------
  132. FILE
  133.    EXITWHEN      = 'INSTALL || UPDATE',
  134.    EXITIGNOREERR = 'NO',
  135.    EXIT          = 'CREATEWPSOBJECT WPFolder "OS/2-Planets"
  136.                    <WP_DESKTOP> R
  137.                    "OBJECTID=<%FOLDERID%>;"'
  138.  
  139.  
  140. *---------------------------------------------------------------------
  141. *  The included package file will install and register the
  142. *  Installation Utility.  You do not need to make any changes to
  143. *  EPFISINC.PKG.
  144. *---------------------------------------------------------------------
  145. INCLUDE
  146.    NAME = 'DRIVE: EPFISINC.PKG'
  147.  
  148.  
  149. **********************************************************************
  150.  
  151.  
  152. *---------------------------------------------------------------------
  153. *  Include 1 COMPONENT entry for each component.
  154. *
  155. *  The following changes are required:
  156. *  - Change "Component 1" in the NAME keyword to the name of the
  157. *    component.
  158. *  - Describe the component in the DESCRIPTION keyword.
  159. *
  160. *  The component must require at least the INSFIRST and DELLAST
  161. *  components.
  162. *---------------------------------------------------------------------
  163. COMPONENT
  164.    NAME        = 'Executables and Data-Files',
  165.    ID          = 'EXES',
  166.    REQUIRES    = 'INSFIRST DELLAST',
  167.    DISPLAY     = 'YES',
  168.    DESCRIPTION = 'Executables and Data-Files',
  169.    SIZE        = '1100000'
  170.  
  171. *---------------------------------------------------------------------
  172. *  Include 1 FILE entry for each file in the component.
  173. *
  174. *  The following changes are required:
  175. *  - Change the SOURCE and PWS keywords to the name of the file to
  176. *    install.
  177. *---------------------------------------------------------------------
  178. FILE
  179.    VOLUME        = 'OS2PL001',
  180.    WHEN          = 'OUTOFDATE',
  181.    REPLACEINUSE  = 'I U D R',
  182.    UNPACK        = 'YES',
  183.    PWS           = 'OS2PL.EXE',
  184.    PACKID        = 'OPL',
  185.    DATE          = '010202',
  186.    TIME          = '0000',
  187.    SIZE          = '750000'
  188.  
  189. FILE
  190.    VOLUME        = 'OS2PL001',
  191.    WHEN          = 'OUTOFDATE',
  192.    REPLACEINUSE  = 'I U D R',
  193.    UNPACK        = 'YES',
  194.    PWS           = 'OS2PL.ICO',
  195.    PACKID        = 'OPL',
  196.    DATE          = '010202',
  197.    TIME          = '0000',
  198.    SIZE          = '1000'
  199.  
  200. *---------------------------------------------------------------------
  201. *  Create a program object in the product folder.
  202. *
  203. *  The following changes are required:
  204. *  - Change "COMP1A" in the EXIT keyword to the name of the object.
  205. *  - Change "COMP1A.EXE" in the EXIT keyword after EXENAME to the
  206. *    name of the program to run.
  207. *  - Change "[]" in the EXIT keyword after PARAMETERS to any
  208. *    parameters required to run the object; if no parameters are
  209. *    required, delete "PARAMETERS=[];" from the EXIT keyword.
  210. *  - Change "COMP1A" in the EXIT keyword after OBJECTID to the
  211. *    program's object ID; be sure to make the value sufficiently
  212. *    unique; the value must be enclosed in "<>" characters; do not use
  213. *    "COMP1A" or the value of the FOLDERID variable.
  214. *---------------------------------------------------------------------
  215. FILE
  216.    EXITWHEN      = 'INSTALL || UPDATE || RESTORE',
  217.    EXITIGNOREERR = 'NO',
  218.    EXIT          = 'CREATEWPSOBJECT WPProgram "OS/2-Planets"
  219.                    <%FOLDERID%> R
  220.                    "ICONFILE=OS2PL.ICO;EXENAME=%EPFIFILEDIR%\OS2PL.EXE;STARTUPDIR=%EPFIFILEDIR%;PARAMETERS=[Player-Directory];OBJECTID=<OS2PLANETS>;"'
  221.  
  222. *---------------------------------------------------------------------
  223. *  Delete the program object.
  224. *
  225. *  The following changes are required:
  226. *  - Change "COMP1A" in the EXIT keyword to the program's object ID;
  227. *    be sure to use the object ID that you gave the object when it was
  228. *    created in the previous FI